/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Graphic;

 /*
  * @author Cristina
  */
public class AccesLevel {

    private String name;
    private boolean dmanager, accountant, secretary, none;
    private static AccesLevel level = new AccesLevel();

    private AccesLevel()
    {
        name = null;
        dmanager = false;
        accountant = false;
        none = false;
        secretary = false;
    }

    public static AccesLevel getInstance()
    {
        return level;
    }
    /**
     * @return the dmanager
     */
    public boolean isDataManager() {
        return dmanager;

    }

    /**
     * @param dmanager the dmanager to set
     */
    public void setDataManager(boolean dmanager) {
        this.dmanager = dmanager;
        accountant = false;
        none = false;
        secretary = false;

    }

    /**
     * @return the accountant
     */
    public boolean isAccountant() {
        return accountant;
    }

    /**
     * @param accountant the accountant to set
     */
    public void setAccountant(boolean accountant) {
        this.accountant = accountant;
        dmanager = false;
        none = false;
         secretary = false;
    }

    /**
     * @return the none
     */
    public boolean isNone() {
        return none;
    }

    /**
     * @param none the none to set
     */
    public void setNone(boolean none) {
        this.none = none;
        accountant = false;
        dmanager = false;
         secretary = false;
    }

    public void setSecretary(boolean s)
    {
        none = false;
        accountant = false;
        dmanager = false;
         secretary = s;
    }
    public boolean isSecretary(){return secretary;}


    public void setName(String n){name = n;}
    public String getName(){return name;}


}
